<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
                      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: RGB color syntax error handling</title>
  <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
  <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/parsing/006.html" type="text/html"/>
  <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#color-units"/>
  <meta name="flags" content="invalid"/>
  <style type="text/css">
    p.correct { color: red }
    p.incorrect { color: green }
    p#numnumpercent { color: rgb(255, 0, 0%) }
    p#percentnumnum { color: rgb(100%, 0, 0) }
    p#percentpercentnum { color: rgb(100%, 0%, 0) }
    p#percentnumpercent { color: rgb(100%, 0, 0%) }
    p#numpercentnum { color: rgb(255, 0%, 0); }
    p#floatnumnum { color: rgb(255.0, 0, 0) }
    p#numfloatnum { color: rgb(0, 128.0, 0) }
    p#numnumnum { color: rgb(0, 128, 0) }
    p#percentpercentpercent1 { color: rgb(0%, 50%, 0%) }
    p#percentpercentpercent2 { color: rgb(0%, 49.99%, 0%) }
  </style>
 </head>
 <body>
  <p class="incorrect" id="numnumpercent">This should be green</p>
  <p class="incorrect" id="percentnumnum">This should be green</p>
  <p class="incorrect" id="percentpercentnum">This should be green</p>
  <p class="incorrect" id="percentnumpercent">This should be green</p>
  <p class="incorrect" id="numpercentnum">This should be green</p>
  <p class="incorrect" id="floatnumnum">This should be green</p>
  <p class="incorrect" id="numfloatnum">This should be green</p>
  
  <p class="correct" id="numnumnum">This should be green</p>
  <p class="correct" id="percentpercentpercent1">This should be green</p>
  <p class="correct" id="percentpercentpercent2">This should be green</p>
 </body>
</html>
